home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-12-16 | 1.1 KB | 48 lines | [TEXT/MPS ] |
- set f `Directory`
-
- set FWBldType "Unknown"
- set FWCompiler "Unknown"
- set FWProcessor "Unknown"
-
- if `Evaluate "{f}" =~ /(≈)(??)®1(???)®2(Debug)∂:/`
- begin
- set FWBldType "Debug"
- set FWCompiler "{®1}"
- set FWProcessor "{®2}"
- end
- else if `Evaluate "{f}" =~ /(≈)(??)®1(???)®2(Release)∂:/`
- begin
- set FWBldType "Release"
- set FWCompiler "{®1}"
- set FWProcessor "{®2}"
- end
- end
-
- export FWBldType
- export FWCompiler
- export FWProcessor
-
- #-----------------------------------------------------------------------
- # Test for compiler, processor and build type.
- #-----------------------------------------------------------------------
- if {FWCompiler} == "SL"
- set FWCompiler "CW"
- export FWCompiler
- end
-
- if {FWCompiler} != "SC" && {FWCompiler} != "MC" && {FWCompiler} != "CW"
- Echo "FWParseCurrentPathName: Unknown compiler (SC, MC or CW): ∂"{FWCompiler}∂""
- exit 1
- end
-
- if {FWProcessor} != "68K" && {FWProcessor} != "PPC"
- Echo "FWParseCurrentPathName: Unknown processor (68K or PPC): ∂"{FWProcessor}∂""
- exit 1
- end
-
- if {FWBldType} != "Debug" && {FWBldType} != "Release"
- Echo "FWParseCurrentPathName: Unknown build type (Debug or Release): ∂"{FWBldType}∂""
- exit 1
- end
-
-